namespace CRM.DataAccess.Entities
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("EMAILS")]
    public partial class EMAIL
    {
        public long ID { get; set; }

        public bool DELETED { get; set; }

        public long? CREATED_BY { get; set; }

        public DateTime DATE_ENTERED { get; set; }

        public long? MODIFIED_USER_ID { get; set; }

        public DateTime DATE_MODIFIED { get; set; }

        public DateTime? DATE_MODIFIED_UTC { get; set; }

        public long? ASSIGNED_USER_ID { get; set; }

        public long? TEAM_ID { get; set; }

        [StringLength(255)]
        public string NAME { get; set; }

        public DateTime? DATE_START { get; set; }

        public DateTime? TIME_START { get; set; }

        [StringLength(25)]
        public string PARENT_TYPE { get; set; }

        public long? PARENT_ID { get; set; }

        public string DESCRIPTION { get; set; }

        public string DESCRIPTION_HTML { get; set; }

        [StringLength(100)]
        public string FROM_ADDR { get; set; }

        [StringLength(100)]
        public string FROM_NAME { get; set; }

        public string TO_ADDRS { get; set; }

        public string CC_ADDRS { get; set; }

        public string BCC_ADDRS { get; set; }

        public string TO_ADDRS_IDS { get; set; }

        public string TO_ADDRS_NAMES { get; set; }

        public string TO_ADDRS_EMAILS { get; set; }

        public string CC_ADDRS_IDS { get; set; }

        public string CC_ADDRS_NAMES { get; set; }

        public string CC_ADDRS_EMAILS { get; set; }

        public string BCC_ADDRS_IDS { get; set; }

        public string BCC_ADDRS_NAMES { get; set; }

        public string BCC_ADDRS_EMAILS { get; set; }

        [StringLength(25)]
        public string TYPE { get; set; }

        [StringLength(25)]
        public string STATUS { get; set; }

        [StringLength(851)]
        public string MESSAGE_ID { get; set; }

        [StringLength(100)]
        public string REPLY_TO_NAME { get; set; }

        [StringLength(100)]
        public string REPLY_TO_ADDR { get; set; }

        [StringLength(25)]
        public string INTENT { get; set; }

        public long? MAILBOX_ID { get; set; }

        public string RAW_SOURCE { get; set; }

        public long? TEAM_SET_ID { get; set; }
    }
}
